Skip to content

feat(todo): better handle (sub)tasks update; revamp styling#74

Merged
tatomyr merged 3 commits intomainfrom
fix-task-update
Dec 9, 2025
Merged

feat(todo): better handle (sub)tasks update; revamp styling#74
tatomyr merged 3 commits intomainfrom
fix-task-update

Conversation

@tatomyr
Copy link
Owner

@tatomyr tatomyr commented Dec 9, 2025

No description provided.

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 25.69% 471 / 1833
🔵 Statements 25.69% 471 / 1833
🔵 Functions 46.21% 61 / 132
🔵 Branches 70.56% 151 / 214
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/purity.ts 95.68% 95.65% 100% 95.68% 120-123, 140-141
src/examples/purity-todo/purity-todo.sw.ts 0% 0% 0% 0% 1-66
src/examples/purity-todo/components/app-style.ts 33.33% 100% 0% 33.33% 87-111
src/examples/purity-todo/components/header.ts 0% 0% 0% 0% 1-40
src/examples/purity-todo/components/input-form.ts 0% 0% 0% 0% 1-75
src/examples/purity-todo/components/modal-style.ts 0% 0% 0% 0% 1-54
src/examples/purity-todo/components/subtask-item.ts 0% 0% 0% 0% 1-76
src/examples/purity-todo/components/task-details-style.ts 0% 0% 0% 0% 1-77
src/examples/purity-todo/components/task-details.ts 0% 0% 0% 0% 1-154
src/examples/purity-todo/components/task-item.ts 73.68% 90% 40% 73.68% 10-14, 19-23, 28-32
src/examples/purity-todo/components/task-list-style.ts 0% 0% 0% 0% 1-57
src/examples/purity-todo/services/task-details.ts 88.46% 88.88% 66.66% 88.46% 27-29
src/examples/purity-todo/services/tasks.ts 50.79% 71.42% 37.5% 50.79% 8, 11-26, 42, 49-51, 55-59, 63-68
Generated in workflow #135 for commit 13099f4 by the Vitest Coverage Report Action

@tatomyr tatomyr changed the title Fix task update better handle (sub)tasks update; revamp styling Dec 9, 2025
@tatomyr tatomyr changed the title better handle (sub)tasks update; revamp styling feat(todo): better handle (sub)tasks update; revamp styling Dec 9, 2025
@tatomyr tatomyr requested a review from Copilot December 9, 2025 20:17
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the todo application's task management functionality and implements a comprehensive styling revamp using CSS custom properties. The key improvements include automatic task completion based on subtasks status, better update tracking with silent updates, and a modernized theme system supporting both light and dark modes.

  • Added logic to automatically complete/uncomplete tasks based on subtask states when closing task details
  • Introduced a silentUpdate parameter to prevent unnecessary updatedAt timestamp changes during UI-driven updates
  • Refactored styling to use CSS custom properties (variables) for comprehensive theming with enhanced dark mode support

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/purity.ts Improved debug console messages for DOM updates
src/examples/purity-todo/services/tasks.ts Added silentUpdate parameter to patchTask to control timestamp updates
src/examples/purity-todo/services/task-details.ts Implemented automatic task completion logic based on subtasks status
src/examples/purity-todo/services/task-details.test.ts Added comprehensive test coverage for new subtask completion behavior
src/examples/purity-todo/purity-todo.sw.ts Version bump to 2.20
src/examples/purity-todo/manifest.json Version bump to 2.20
src/examples/purity-todo/components/task-list-style.ts Replaced hardcoded colors with CSS variables; removed stale task styling
src/examples/purity-todo/components/task-item.ts Added unique ID to task description element
src/examples/purity-todo/components/task-item.test.ts Updated snapshots to reflect new element ID
src/examples/purity-todo/components/task-details.ts Removed trailing whitespace
src/examples/purity-todo/components/task-details-style.ts Applied CSS variables; added text overflow handling
src/examples/purity-todo/components/subtask-item.ts Refactored to extract subtask arrays before calling patchTask
src/examples/purity-todo/components/modal-style.ts Converted hardcoded colors to CSS variables
src/examples/purity-todo/components/input-form.ts Applied CSS variables and added focus outline styling
src/examples/purity-todo/components/header.ts Restructured CSS with nested selectors and CSS variables
src/examples/purity-todo/components/app-style.ts Introduced comprehensive CSS variable system for theming with enhanced light/dark mode support

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tatomyr tatomyr merged commit 8657e7b into main Dec 9, 2025
2 checks passed
@tatomyr tatomyr deleted the fix-task-update branch December 9, 2025 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants